﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApi.Model;

namespace WebApi.Infrastructure
{
    /// <summary>
    /// 自助机【SSMachineController】调用接口的数据返回数据格式
    /// </summary>
    public class BackInfo
    {
        public int code { get; set; }
        public object data { get; set; }
        public string message { get; set; }
        //分页信息
        /// <summary>
        /// 页号--pageindex是从1开始的不是从零开始的
        /// </summary>
        public int pageIndex { get; set; }
        /// <summary>
        /// 页大小
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalCount { get; set; }
    }


    /// <summary>
    /// 带条件查询实体
    /// </summary>
    public class QueryParameter
    {
        /// <summary>
        /// 页号
        /// </summary>
        public int pageIndex { get; set; }
        /// <summary>
        /// 页大小
        /// </summary>
        public int pageSize { get; set; }

        public Dictionary<string, string> ParameterDic { get; set; }
    }



    /// <summary>
    /// 门禁根据二维码号
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BackInfo_DoorContolByQrCode
    {
        public int code { get; set; }
        public AppointmentInfoModel data { get; set; }
        public object message { get; set; }
        public object success { get; set; }
    }

}
